﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>创建</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../Layui/css/layui.css" media="all">
</head>
<body>
    <form class="layui-form" action="">
        <div class="layui-form-item" style="margin-top:10px;">

            <label class="layui-form-label">学员信息</label>
            <div class="layui-input-inline">
                <input type="text" name="CustName" required lay-verify="required" placeholder="请输入宝宝姓名" autocomplete="off" class="layui-input">
            </div>

            <label class="layui-form-label">联系电话</label>

            <div class="layui-input-inline">
                <input type="text" name="CustTel" required lay-verify="required" placeholder="请输入联系电话" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label">微信号</label>
            <div class="layui-input-inline">
                <input type="text" name="WeiXin" required lay-verify="required" placeholder="请输入微信" autocomplete="off" class="layui-input">
            </div>


            <label class="layui-form-label">固定电话</label>

            <div class="layui-input-inline">
                <input type="text" name="Gddh" required lay-verify="required" placeholder="请固定电话" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item ">
            <label class="layui-form-label">宝宝小名</label>
            <div class="layui-input-inline">
                <input type="text" name="ChildName" required lay-verify="required" placeholder="请输入宝宝小名" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label">性别</label>
            <div class="layui-input-inline">
                <input type="radio" name="sex" value="男" title="男">
                <input type="radio" name="sex" value="女" title="女" checked>
            </div>
            <label class="layui-form-label">出生日期</label>
            <div class="layui-input-inline">
                <input type="text" name="BirdDate" id="BirdDate" required lay-verify="required" placeholder="请选择出生日期" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-input-inline">
                <input type="checkbox" name="BirDateState" lay-skin="switch"><div class="layui-form-mid layui-word-aux"> 出生日期已确认</div>
            </div>


        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">意向课程</label>
            <div class="layui-input-inline">
                <div class="layui-input-inline">
                    <select name="LinkRelation" lay-verify="required">
                        <option value=""></option>
                        <option value="课程">课程</option>
                        <option value="课程1">课程</option>
                        <option value="C">C</option>
                        <option value="淘汰">淘汰</option>
                        <option value="历史">历史</option>
                        <option value="预约到访">预约到访</option>
                    </select>
                </div>
            </div>
            <label class="layui-form-label">意向日期</label>
            <div class="layui-input-inline">
                <input type="text" name="BirdDate" id="BirdDate" required lay-verify="required" placeholder="请选择意向日期" autocomplete="off" class="layui-input">
            </div>
            <label class="layui-form-label">客户等级</label>
            <div class="layui-input-inline">
                <select name="LinkRelation" lay-verify="required">
                    <option value=""></option>
                    <option value="A">A</option>
                    <option value="B">B</option>
                    <option value="C">C</option>
                    <option value="淘汰">淘汰</option>
                    <option value="历史">历史</option>
                    <option value="预约到访">预约到访</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">地址</label>
            <div class="layui-input-block">
                <input type="text" name="CusFromRemark" required lay-verify="required" placeholder="请输入来源备注" autocomplete="off" class="layui-input">
            </div>

        </div>
       
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="CustRemark" placeholder="请输入内容" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-inline">
                <button class="layui-btn" lay-submit lay-filter="formDemo">添加联系人</button>
            </div>
        </div>

        <div class="layui-form-item">
            <table class="layui-table" lay-skin="line" lay-data="{ url:'/Sys/Grant/Data?',  id:'idTest',height: '150px', cellMinWidth: 120,}" lay-filter="fllowup">
                <thead>
                    <tr>

                        <th lay-data="{field:'id',  sort: true, fixed: true}">姓名 </th>
                        <th lay-data="{field:'username'}">关系 </th>
                        <th lay-data="{field:'id',  sort: true, fixed: true}">电话</th>
                        <th lay-data="{field:'username'}">是否二孩</th>
                    </tr>
                </thead>
            </table>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
    <script src="../Layui/layui.js"></script>

    <script>
        layui.config({
            base: '../Layui/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use('index');
    </script>
    <script>
        //Demo
        layui.use('form', function () {
            var form = layui.form;

            //监听提交
            form.on('submit(formDemo)', function (data) {
                layer.msg(JSON.stringify(data.field));
                return false;
            });
        });
    </script>
    <script>
        layui.use('laydate', function () {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#BirdDate' //指定元素
            });


        });
    </script>
    <script>
        layui.use('table', function () {
            var table = layui.table;


        });
    </script>
</body>
</html>